package com.vitabuybuy.tv.dto;

import com.vitabuybuy.tv.utils.LanaugeUtils;

/**
 * 作者：SimGa
 * 日期：2020/12/4
 * 时间：11:04
 * 包名：com.vitabuybuy.tv.dto
 */
public class GoodsDto {


    /**
     * thumbnail : http://106.55.47.138/attachment/jpg/2897/140_17939.jpg
     * originalPrice : 150
     * salePrice : 100
     * salesQuantity : 0
     * name : 鞋
     * id : 13
     * store : {"name":"李艺科潮男装卖店","id":12}
     * region : {"name":"广州","id":5}
     * brand : {"name":"耐克","id":1}
     */

    private String thumbnail;
    private double originalPrice;
    private double salePrice;
    private int salesQuantity;
    private String name;
    private int id;
    private StoreBean store;
    private RegionBean region;
    private BrandBean brand;

    public static class StoreBean {
        /**
         * name : 李艺科潮男装卖店
         * id : 12
         */

        private String name;
        private int id;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }

    public static class RegionBean {
        /**
         * name : 广州
         * id : 5
         */

        private String name;
        private int id;

        public String getName() {
            return LanaugeUtils.returnStrByLocation(name);
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }

    public static class BrandBean {
        /**
         * name : 耐克
         * id : 1
         */

        private String name;
        private int id;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public double getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(double originalPrice) {
        this.originalPrice = originalPrice;
    }

    public double getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(double salePrice) {
        this.salePrice = salePrice;
    }

    public int getSalesQuantity() {
        return salesQuantity;
    }

    public void setSalesQuantity(int salesQuantity) {
        this.salesQuantity = salesQuantity;
    }

    public String getName() {
        return LanaugeUtils.returnStrByLocation(name);
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public StoreBean getStore() {
        return store;
    }

    public void setStore(StoreBean store) {
        this.store = store;
    }

    public RegionBean getRegion() {
        return region;
    }

    public void setRegion(RegionBean region) {
        this.region = region;
    }

    public BrandBean getBrand() {
        return brand;
    }

    public void setBrand(BrandBean brand) {
        this.brand = brand;
    }
}
